const { get2 } = require('./get.js')
let get = get2
var object = { 'a': [{ 'b': { 'c': 3 } }] };

let a = get(object, 'a[0].b.c');
console.log(a)
// => 3

let b = get(object, ['a', '0', 'b', 'c']);
console.log(b)
// => 3

let c = get(object, 'a.b.c', 'default');
console.log(c)
// => 'default'